package com.itbupt.eat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itbupt.eat.entity.ShoppingCart;

import java.util.List;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/2 0:58
 * ClassName: IShoppingCartService
 * Description:
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    // 添加菜品到购物车
    ShoppingCart add(ShoppingCart shoppingCart);

    // 查询当前用户的购物车中所有信息
    List<ShoppingCart> getUserList();

    // 清空购物车
    Boolean clean();

    // 购物车商品减一
    Boolean sub(ShoppingCart shoppingCart);




}
